package java1;

import java.util.Scanner;

public class F_zero {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while (in.hasNextInt()) {
			int a = in.nextInt();
			System.out.println(Integer.numberOfLeadingZeros(a));
		}
	}
}
